package com.bolingcavalry.crm.taskorder.mapper;/*
 * @Auther:Sadie
 * @Date:2025/5/12
 * @Description:
 * @VERSON:1.8
 */

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.entity.taskorder.ConfirmationOrder;
import com.vo.ConfirmationOrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ConfirmationMapper extends BaseMapper<ConfirmationOrder> {

    IPage<ConfirmationOrderVO> getConfirmationOrdersByPage(Page<ConfirmationOrderVO> page,
                                                           @Param("customerName") String customerName,
                                                           @Param("taskOrderNumber")String taskOrderNumber,
                                                           @Param("startTime")String startTime,
                                                           @Param("endTime")String endTime,
                                                           @Param("status")Integer status);

    void updateStatusByOrderNumber(String orderNumber, String status);
}


